<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="jquery.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div>
			<p>你好世界</p>
			<button type="button" class="button1">显示</button>
			<button type="button" class="button2">隐藏</button>
		</div>
	</body>
	<script type="text/javascript">
		$(function(){
			$(".button1").click(function(){
				$("p:hidden").css("display","block");
			});
			$(".button2").click(function(){
				$("p:visible").css("display","none");
			});
		})
		
	</script>
</html>
